package com.atguigu.guli.service.oss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
//当前项目由于依赖了service-base,service-base 有依赖了mysql,当前项目启动时自动配置包中默认会
//初始化数据库连接池对象,但是没有读取到数据库连接的配置参数,所以初始化失败导致项目启动失败
//解决: 排除数据库连接池的自动配置类即可
@EnableDiscoveryClient
@ComponentScan(basePackages = "com.atguigu.guli")
public class ServiceOssApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceOssApplication.class,args);
    }
}
